//
//  DDRegisterSerivce.m
//  DingDongZP
//
//  Created by Jyh on 16/3/21.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDRegisterSerivce.h"

@implementation DDRegisterSerivce

- (void)queryRegisterWithMobile:(NSString *)mobile
                       password:(NSString *)password
                           code:(NSString *)code
                   successBlock:(successBlock)successBlock
                      failBlock:(faileBlock)failBlock

{
    NSString *URLString = [[DDAPIGenerate sharedInstance] API:@"register"];
    
    NSMutableDictionary *params = [@{} mutableCopy];
    
    if (mobile) {
        params[@"mobile"] = mobile;
    }
    if (password) {
        params[@"password"] = password;
    }
    if (code) {
        params[@"code"] = code;
    }

    DDNetWorkManager *manager = [DDNetWorkManager shareManager];
    
    [manager GET:URLString parameters:params success:successBlock failure:failBlock];
}

@end
